import request from '../utils/request'

export default {
    login(data) {
        return request.post('/login/confirm', data)
    },
    logout() {
        return request.get('/sso/logout')
    },
    token() {
        return request.get('/login/token')
    },
    userInfo(token_enc) {
        return request.get('/userInfo', {token_enc})
    },
    modifyPassword(data) {
        return request.post('/modifyPassword', data)
    },
    authMap() {
        return request.get('/authMap')
    }
}